package com.neugh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sot
 * @since 2020-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Repair implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 维修id
     */
      @TableId(value = "repairId", type = IdType.AUTO)
    private Integer repairId;

    /**
     * 维修内容
     */
    private String repairtContent;

    /**
     * 维修图片
     */
    private String repairImg;

    /**
     * 用户id 外键
     */
    private Integer userId;

    private String repairDate;


    @TableField(exist = false)
    public String userName;

    @TableField(exist = false)
    public String userPhone;
    public static final String REPAIRID = "repairId";

    public static final String REPAIRTCONTENT = "repairtContent";

    public static final String REPAIRIMG = "repairImg";

    public static final String USERID = "userId";

    public static final String REPAIRDATE = "repairDate";

}
